//
//  File.swift
//  TanTan_Kotlin
//
//  Created by EDY on 5/26/25.
//

import SwiftUI

struct CustomCounterView : View {
    @State private var count = 0
    var body: some View {
        VStack {
            Text("计数器 \(count)")
                .font(.title3)
            Button("增加"){
                count += 1
            }
            .font(.subheadline)
            .padding()
            .background(.blue)
            .foregroundColor(.white)
            .cornerRadius(10)
        }
    }
}

#Preview {
    CustomCounterView()
}
